<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>

<%
    response.setHeader("Cache-Control","no-cache"); //Forces caches to obtain a new copy of the page from the origin server
    response.setHeader("Cache-Control","no-store"); //Directs caches not to store the page under any circumstance
    response.setDateHeader("Expires", 0); //Causes the proxy cache to see the page as "stale"

    if (session.getAttribute("userID") == null) {  
        // User is not logged in.
          response.sendRedirect("index.jsp");
    } else {  
        // User is logged in.  
    }
%>

<%@ include file="header.jsp"%>

    <div class="contents">
        <div class="left">

            <!-- instanca oz. primer moj profil -->
            <div id="div_moj_profil">
                <!-- preko serverja se dodajajo div: comment ali picture objave mene -->
                <div class="comment">
                    <div class="notice">
                        <p class="person">Polona Oven</p>
                        <p>On the way to Amsterdam...</p>
                    </div>
                </div>
                <div class="picture">
                    <div class="notice">
                        <p class="person">Polona Oven</p>
                        <p>
                            <a href="http://shrani.si/f/O/o4/33nSvKhv/herissonbypicc0laaragazz.jpg"><img
                                src="http://shrani.si/f/O/o4/33nSvKhv/herissonbypicc0laaragazz.jpg"></img></a>
                        </p>
                    </div>
                </div>
            </div>
        </div>
        <div class="right">
            <div id="menu_buttons">
                <p>
                    <a href="utrinki.jsp" class="div_button">Domov</a>
                </p>
                <p>
                    <a href="utrinkiMojProfil.jsp" class="div_button">Moj profil</a>
                </p>
                <p>
                    <a href="utrinkiMojiPrijatelji.jsp" class="div_button">Moji prijatelji</a>
                </p>
                <p>
                    <a href="utrinkiPoisciPrijatelje.jsp" class="div_button">Poišči prijatelje</a>
                </p>
                <p>
                    <a href="utrinkiDodajNovoObjavo.jsp" class="div_button">Dodaj novo objavo</a>
                </p>
            </div>

            <!-- Fajl za odjavo -->
            <form action="process-logout.jsp" method="post">
                <p>
                    <input type="submit" class="button_style" name="odjava" value="Odjava" />
                </p>
            </form>
        </div>
    </div>

<%@ include file="footer.jsp"%>
